package cn.apple.org.service;

import cn.apple.basic.utils.PageList;
import cn.apple.org.domain.Department;
import cn.apple.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentService {
    // 添加
    void add(Department department);

    // 修改
    void update(Department department);

    // 删除
    void delete(Long id);

    // 查询一个
    Department findById(Long id);

    // 查询所有
    List<Department> findAll();


    // 分页查询数据
    PageList<Department> queryByPage(DepartmentQuery query);

}
